#!/bin/bash

source ./set_env.bash
path=$PWD

function buildAllCase ()
{
  for file in `ls $1`
  do
    if [ -d $1"/"$file ]
    then
      buildAllCase $1"/"$file
    else
      if echo $1"/"$file | grep -q -E 'build.sh'
        then
          cd $1
          bash $file
          cd -
      fi
    fi
  done
}

buildAllCase $path
